package edu.nwpu.dao;


import edu.nwpu.pojo.FoodCount;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface FoodCountMapper {

    /**
     * 插入订单的菜品及对应数量信息
     *
     * @param foodCount:
     *
     * @return int
     */
    int insertFoodCount(FoodCount foodCount);

    @Deprecated
    FoodCount selectFoodCountByPrimaryKey(@Param("orderId") Long orderId, @Param("foodId") Long foodId);

    @Deprecated
    List<FoodCount> selectFoodCountsByOrderId(@Param("orderId") Long orderId);

    @Deprecated
    int updateFoodCount(FoodCount foodCount);

    @Deprecated
    int deleteFoodCountById(@Param("orderId") Long orderId, @Param("foodId") Long foodId);

    @Deprecated
    int deleteFoodCountsByOrderId(@Param("orderId") Long orderId);
}
